home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / quel / delete.doc < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  40 lines

  1.  
  2.  
  3.  
  4.  
  5.      DELETE(QUEL)                 1/26/79                 DELETE(QUEL)
  6.  
  7.  
  8.  
  9.      NAME
  10.           delete - delete tuples from a relation
  11.  
  12.      SYNOPSIS
  13.           _d_e_l_e_t_e tuple_variable [_w_h_e_r_e qual]
  14.  
  15.      DESCRIPTION
  16.           _D_e_l_e_t_e removes tuples which satisfy the  qualification  _q_u_a_l
  17.           from  the  relation that they belong to.  The _t_u_p_l_e__v_a_r_i_a_b_l_e
  18.           must have been declared to range over an  existing  relation
  19.           in  a  previous  _r_a_n_g_e  statement.   _D_e_l_e_t_e  does not have a
  20.           _t_a_r_g_e_t__l_i_s_t.  The _d_e_l_e_t_e command requires a  tuple  variable
  21.           from  a  _r_a_n_g_e  statement, and not the actual relation name.
  22.           If the qualification is not given, the effect is  to  delete
  23.           all tuples in the relation.  The result is a valid, but emp-
  24.           ty relation.
  25.  
  26.           To _d_e_l_e_t_e tuples from a relation, you must be the  owner  of
  27.           the relation, or have _d_e_l_e_t_e permission on the relation.
  28.  
  29.      EXAMPLE
  30.           /* Remove all employees who make over $30,000 */
  31.              range of e is emp
  32.              delete e where e.sal > 30000
  33.  
  34.      SEE ALSO
  35.           destroy(quel), permit(quel), quel(quel), range(quel)
  36.  
  37.      BUGS
  38.  
  39.  
  40.